#include<stdio.h>
#include<iostream>
#include<string.h> 
#include<algorithm>
#include<math.h>
int mid;
using namespace std;
int main(){
	string inf,ins,ans;
	cin>>inf>>ins;
	reverse(inf.begin(),inf.end());
	reverse(ins.begin(),ins.end());
	for(int i=0;i<min(inf.length(),ins.length());i++){
		mid=char(ins[i]-'0')+char(inf[i]-'0');
		if(mid>=10) mid-=10;
		ans[i]=char(mid+'0');ans[i+1]=char(1+'0');
	}reverse(ans.begin(),ans.end());
	cout<<ans;

	return 0;
}
 
